<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>消息详情</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
    <link rel="stylesheet" type="text/css" href="../css/base.css"/>
    <style>
    	body{
    		background: #fff;
    	}
    </style>
</head>
<body>
<script id="act-template" type="text/x-dot-template">
	<section>
		<strong style="margin-left: 10px; margin-top: 10px;">{{=it.title}}</strong>
		<div style="margin: 10px;">
		{{=it.content}}
			
		<br />
		<div style="float: right">{{=it.author}}</div>
			<br />
			<br />
			<div style="float: right">{{=it.time}}</div>
		</div>		
	</section>
</script>
	<div id='message-detail'>
		
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript">
	apiready = function(){
		var id = api.pageParam.shopId;
		api.ajax({
	        url:'http://wap.jqmao.cn/getSystemMessage?id='+id
        },function(ret,err){
        	//coding...
        	if(ret){
				var content = $api.byId('message-detail');
            	var tpl = $api.byId('act-template').text;
            	var tempFn = doT.template(tpl);
            	$api.html(content, tempFn(ret));
        	}else{
        		////alert(JSON.stringify(err));
        	}
        });
	
	};
</script>
</html>